package top.eggcode.system.modules.user.model;

import lombok.Data;
import top.eggcode.common.base.EntityInit;
import top.eggcode.common.model.UidGenerator;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Title:
 * Description: TODO
 * Date: 2021/8/7 15:03
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Data
@Entity
@Table(name = "auth_account_role")
public class AccountRoleEntity implements EntityInit {

    @Id
    private String id;

    private String accountId;

    private String roleId;

    @Override
    public void init() {
        this.setId(
                UidGenerator.apply()
        );
    }
}
